<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<html>
<head>
<jsp:useBean id="MESSAGE" class="java.lang.String" scope="request"/>
<title>Bookstore</title>
<script>

	
	function prev()
	{
		document.frm.action="/bookstore/prevpage.do";
	  document.frm.submit();
	}

		function next()
	{
		document.frm.action="/bookstore/nextpage.do";
	  document.frm.submit();
	}

	
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/bookstore/default.css" />
</head>
<body bgcolor="maroon" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (all.psd) -->
<table id="Table_01" width="718"  border="0" cellpadding="0" cellspacing="0" align=center>
	<tr>
		<td colspan="3">
		<img src="/bookstore/images/all_01.jpg" width="718" height="167" alt="">	
		</td>
	</tr>
	<tr>
		<td>
			<div id="menu" align=center>	
				<jsp:include page="customermenu.jsp"/>
		  </div>	
		</td>
	</tr>
	<tr>
		<td colspan="3">
		<div id="content">	
		
<form method="post" name=frm action="">
<html:hidden name="UploadItemForm" property="shopid" />
 <input type="hidden" id="imageId"  name="imageId" value="" />
 
 <input type="hidden" name="call" value="upload" />
 
<input type="hidden" name="pagenumber" value="<%=(String)request.getAttribute("pagenumber")%>" />

 



<div id="centent">

<p class="pheading1">Search Result</p>
<bean:write name='MESSAGE'/> 

<table cellpadding="0" cellspacing="9" class=contentable>

 <bean:define id="shopid"  name="UploadItemForm" property="shopid"/>
 <logic:iterate id="imgs" name="UploadItemForm" property="imageList"> 
 <tr>
<td colspan=1>
 <!--div id="thumbnailImages" valign="middle"  -->
	<img style="border:1px solid gray;margin-left:4px;" height="100px" width="85px" valign="middle"  src="<%= ("gallery/" +shopid+ "/thumb_" + imgs) %>" ></img>
	
<!--/div-->
</td>
<td>
<table class="searchresulttbl" cellspacing="3">
<tr>
<td class="hdng">Book Title:</td><td><bean:write name="imgs" property="name"/></td>
</tr>
<tr>
<td class="hdng">Author:</td><td><bean:write name="imgs" property="author"/></td>
</tr>
<tr>
<td class="hdng">Publisher:</td><td><bean:write name="imgs" property="publisher"/></td>
</tr>
<tr>
<td class="hdng">Year of Publication:</td><td><bean:write name="imgs" property="year"/></td>
</tr>
<tr>
<td class="hdng">ISBN:</td><td><bean:write name="imgs" property="isbn"/></td>
</tr>
<tr>
<td class="hdng">Price:</td><td><bean:write name="imgs" property="price"/></td>
</tr>
</table>


</td>

</tr>
<tr><td colspan="2"></td></tr>
 </logic:iterate>



</table>
<div class=btndiv><input type=button value=Prev onclick="prev();" style="cursor:pointer">&nbsp;&nbsp;&nbsp;&nbsp;
<input type=button value=Next onclick="next();" style="cursor:pointer"></div>

</div>

</form>

		</div>
		</td>
	</tr>
	<tr>
		<td colspan="3">
			<div id=footer><img src="/bookstore/images/all_06.jpg" width="718" height="17" alt=""></td>
			</div>
	</tr>
	
</table>
<!-- End ImageReady Slices -->
</body>
</html>